import { createRouter, RouteRecordRaw, createWebHistory } from 'vue-router'

const routes = [
  {
    name: 'qrcode',
    path: '',
    component: () => import('../view/Code.vue'),
  },
  {
    name: 'dowload',
    path: '/dowload',
    component: () => import('../view/Dowload.vue'),
  },
  {
    name: 'login',
    path: '/login',
    component: () => import('../view/Login.vue'),
  },
] as RouteRecordRaw[]

export default createRouter({
  history: createWebHistory(),
  routes,
})
